package com.industrial.operation.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.industrial.operation.mapper.OperationPowerMapper;
import com.industrial.operation.domain.OperationPower;
import com.industrial.operation.service.IOperationPowerService;

/**
 * 社会用电量Service业务层处理
 * 
 * @author ZHOU_S
 * @date 2024-01-19
 */
@Service
public class OperationPowerServiceImpl implements IOperationPowerService 
{
    @Autowired
    private OperationPowerMapper operationPowerMapper;

    /**
     * 查询社会用电量
     * 
     * @param baseId 社会用电量主键
     * @return 社会用电量
     */
    @Override
    public OperationPower selectOperationPowerByBaseId(String baseId)
    {
        return operationPowerMapper.selectOperationPowerByBaseId(baseId);
    }

    /**
     * 查询社会用电量列表
     * 
     * @param operationPower 社会用电量
     * @return 社会用电量
     */
    @Override
    public List<OperationPower> selectOperationPowerList(OperationPower operationPower)
    {
        return operationPowerMapper.selectOperationPowerList(operationPower);
    }

    /**
     * 新增社会用电量
     * 
     * @param operationPower 社会用电量
     * @return 结果
     */
    @Override
    public int insertOperationPower(OperationPower operationPower)
    {
        return operationPowerMapper.insertOperationPower(operationPower);
    }

    /**
     * 修改社会用电量
     * 
     * @param operationPower 社会用电量
     * @return 结果
     */
    @Override
    public int updateOperationPower(OperationPower operationPower)
    {
        return operationPowerMapper.updateOperationPower(operationPower);
    }

    /**
     * 批量删除社会用电量
     * 
     * @param baseIds 需要删除的社会用电量主键
     * @return 结果
     */
    @Override
    public int deleteOperationPowerByBaseIds(String[] baseIds)
    {
        return operationPowerMapper.deleteOperationPowerByBaseIds(baseIds);
    }

    /**
     * 删除社会用电量信息
     * 
     * @param baseId 社会用电量主键
     * @return 结果
     */
    @Override
    public int deleteOperationPowerByBaseId(String baseId)
    {
        return operationPowerMapper.deleteOperationPowerByBaseId(baseId);
    }
}
